$header-height: 60px;
$player-height: 70px;
$sidebar-width: 200px;
$tab-padding_horizon: 2.5%;
$primary-color: #ec4141;

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background-color: #fff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #f1f1f1;
    border-radius: 10px;
}


@mixin noWrap ($width) {
    max-width: $width;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@mixin multipleNoWrap($line) {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    word-break: break-all; //让浏览器实现在任意位置的换行 *break-all为允许在单词内换行*
    -webkit-box-orient: vertical; //设置伸缩盒对象的子元素的排列方式 垂直方式
    -webkit-line-clamp: $line; //用来限制在一个块元素中显示的文本的行数
}


.tabs-nav {
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
    background: #fff;

    &.absolute {
        position: absolute;
        z-index: 2;
    }

    .tabs-nav-item {
        margin-left: 25px;
        cursor: pointer;

        &.active {
            position: relative;
            font-weight: bold;

            &.scale {
                font-size: 20px;
            }

            &::after {
                position: absolute;
                right: 0;
                bottom: -10px;
                left: 0;
                width: 78%;
                height: 3px;
                margin: auto;
                background: $primary-color;
                border-radius: 4px;
                content: "";
            }
        }
    }
}

.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);

  > div {
    position: absolute;
    width: 45px;
    height: 45px;
    background-color: #ec4141;
    border-radius: 50%;
    opacity: .9;
    -webkit-animation: loading 1.5s ease-in infinite;
    animation: loading 1.5s ease-in infinite;

    &:nth-child(2) {
      opacity: .6;
      -webkit-animation-delay: -0.9s;
      animation-delay: -0.9s;
    }
  }
}

@keyframes loading {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}

@-webkit-keyframes loading {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}

.trun-rotate-180 {
  transform: rotate(180deg);
}
